import { Button } from 'antd'
const Com = () => {
  const openChat = () => {
    window._MEIQIA('withoutBtn');
    window._MEIQIA('init')
    window._MEIQIA('showPanel');
    window._MEIQIA('metadata', {
      address: '北京昌平千锋教育',
      name: '吴勋勋',
      qq: '522864637',
      tel: 18813007814
  });
  }
  return (
    <div>
    客服
      <Button onClick={ openChat }>打开聊天室</Button>
    </div>
  )
}
export default Com